package com.cool.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cool.modelmapper.DtoMapper;
import com.cool.modelmapper.model.Apple;
import com.cool.modelmapper.model.Fruit;

/**
 * @author bian
 * @date 2021-03-17
 */
@Service
public class DtoService {
    @Autowired
    private DtoMapper dtoMapper;

    public Apple tran(Fruit fruit) {
        return dtoMapper.convert2Apple(fruit);
    }
}
